XX=g++
SOURCES=main.cpp
EXCUTABLES=main
OBJECTS=$(SOURCES:.cpp=.o)
CFLAGS=-c
LDFLAGS=

all: $(SOURCE) $(EXCUTABLES) 

$(EXCUTABLES):$(OBJECTS)
	$(XX) $(LDFLAGS) $(OBJECTS) -o $@

.cpp.o:
	$(XX) $(CFLAGS) $< -o $@

clean:
	rm *.o $(EXCUTABLES)


